Operator_Or Method
Used to overload the Or operator, providing custom functionality.
Syntax
Notes
Create an Operator_Or function in a class to specify the functionality of the Or operator for that class. Whenever you use the Or operator in your code to operate on two instances of the class, your Operator_Or function will be called.
In the function, the Self instance is the left operand and the other operand is passed as a parameter.
Example
Suppose you define a class myResult with the property a as Boolean. Operator_Or is defined as:
See Also
Or operator, Operator_OrRight function.